#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
using namespace std;
int main()
{
	string name = "Zhangsan";
	string classReference = "99900779";
	string date = "03-29";

	string input = "ABC";

	cin >> input;
	if (input == "NCD")
	{
		cout << name << "_" << classReference << "_" << date << endl;
	}
	else if (input == "CND")
	{
		cout << classReference << "_" << name << "_" << date << endl;
	}
}